import request from "@/utils/request";

export const inspectionMap = {
  create(data) {
    return request({
      url: "/robot-inspection-map/v1/create",
      method: "post",
      data,
    });
  },
  read(params) {
    return request({
      url: "/robot-inspection-map/v1/list",
      method: "get",
      params,
    });
  },
  update(id, data) {
    return request({
      url: "/robot-inspection-map/v1/update",
      method: "put",
      data,
    });
  },
  delete(id) {
    return request({
      url: "/robot-inspection-map/v1/delete/" + id,
      method: "delete",
    });
  },
};

export const inspectionAudio = {
  create(data) {
    return request({
      url: "/robot-inspection-audio/v1/create",
      method: "post",
      data,
    });
  },
  read(params) {
    return request({
      url: "/robot-inspection-audio/v1/list",
      method: "get",
      params,
    });
  },
  update(id, data) {
    return request({
      url: "/robot-inspection-audio/v1/update",
      method: "put",
      data,
    });
  },
  delete(id) {
    return request({
      url: "/robot-inspection-audio/v1/delete/" + id,
      method: "delete",
    });
  },
};
